package com.lucas.service;

import com.lucas.fallback.EmailFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "lagou-server-email")
public interface EmailService {
    @RequestMapping("/{mail}/{code}")
    boolean sendEmailWithCode(@PathVariable String mail ,@PathVariable String code);
}
